<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
	<?php $this->load->view('common/top', array('title' => 'SEWIKI - BOOKLIST')); ?>
	<body>
		<div id="container">
			<?php $this->load->view('common/header'); ?>
			<div id="content">
				<?php $this->load->view('common/menu'); ?>
				<div id="main">
					<div id="book_list_title" class="title">图书列表&nbsp; <a class="<?=$adminAuth?>" href="<?=site_url('admin/BookManager/createBook')?>">[创建新图书]</a>
					</div>
					<div id="book_list" class="text">
						<table border="0">
							<tr style="">
								<td width="10%"></td>
								<td width="5%"></td>
								<td></td>
								<td width="10%"></td>
							</tr>
							<?php foreach($books as $book): ?>
								<?php $this->load->view('browser/bookItem', $book);?>
							<?php endforeach;?>
							<?php if(count($books) == 0): ?>
							<tr>
								还没有创建图书
							</tr>
							<?php endif; ?>
						</table>
					</div>
				</div>
			</div>
			<?php $this->load->view('common/footer'); ?>
		</div>
	</body>
</html>